package com.example.demo.control;

import com.example.demo.service.MenuService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@ResponseBody
@Controller
public class MenuControl {
    @Resource
    MenuService menuService;
    @PostMapping("/j/menuSe")
    public String seMenu(String menuid,String menuname){
        String a = menuService.selectMenu(-1,"");
        return a;
    }
}
